<%--
    Document   : creation
    Created on : 10 févr. 2011, 12:48:30
    Author     : Amanda & Rami
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>AGP : Cr&eacute;ation d&rsquo;un nouveau projet</title>
        <link rel="stylesheet" media="screen" type="text/css" title="Design" href="./css/design_corps.css" />
        <link rel="stylesheet" media="screen" type="text/css" title="Design" href="./css/design_creation.css" />
        <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/overcast/jquery-ui.css" type="text/css" />
         <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
        <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
        <script src="javascript/jquery.ui.datepicker-fr.js"></script>
    </head>
    <body>
        <div id="page">
            <form action="Controleur" method="POST">
                <jsp:include page="_banniere.jsp"/>
                <jsp:include page="_menu.jsp"/>
                <div id="corps">
                    <div id="corps_titre">Cr&eacute;ation d&rsquo;un nouveau projet</div>
                    <script type="text/javascript">
                        $(function() {
                            $('#datetime1').datepicker({
                                dateFormat: 'yy-mm-dd'
                            });
                            $('#datetime2').datepicker({
                                dateFormat: 'yy-mm-dd'
                            });
                        });
                    </script>
                    <%  String controle = (String) request.getAttribute("controle");
                                if (controle != null) {%>
                    <div id="formulaire_bloc"> <%=controle%> </div>
                    <% }%>
                    <div id="creer_bloc">
                        <div id="creer_bloc1">
                            <div id="creer_text">Nom du projet</div>
                            <div id="creer_champs"><input type="text" name="nomProjet" value=""/></div>
                        </div>
                        <div id="creer_bloc2">
                            <div id="creer_text">date de d&eacute;but</div>
                            <div id="creer_champs">
                            <input type="text" name="dateDebut" id="datetime1" value="${sessionScope['dateDebut']}" />                               
                            </div>
                        </div>
                        <div id="creer_bloc3">
                            <div id="creer_text">date de fin</div>
                            <div id="creer_champs">
                                 <input type="text" name="dateFin" id="datetime2" value="${sessionScope['dateFin']}" />                            
                            </div>
                        </div>
                        <div id="creer_bloc4">
                            <div id="creer_text">Promotion</div>
                            <div id="creer_champs">
                                <select name="promotion">
                                    <option value="01">M1 Fic</option>
                                    <option value="02">M1 Fa</option>
                                    <option value="03">M2 Fic</option>
                                    <option value="04">M2 Fa</option>
                                </select>
                            </div>
                        </div>
                        <div id="creer_bloc5">
                            <div id="creer_text">Description</div>
                            <div id="creer_champs"><input name="descriptionProjet" value=""/>
                               <!-- <textarea name="descriptionProjet" cols="20" rows="4"  ></textarea> -->
                            </div>
                        </div>
                        <div id="creer_bloc6">
                            <div id="creer_text">Nombre de formateurs</div>
                            <div id="creer_champs">
                                <select name="nbFormateurs">
                                    <c:forEach begin="1" end="4" var="entry" >
                                        <option value="${entry}"><c:out value="${entry}"/></option>
                                    </c:forEach>
                                </select>
                            </div>
                        </div>
                        <div id="creer_bloc7">
                            <div id="creer_text">Nombre de mati&egrave;res</div>
                            <div id="creer_champs">
                                <select name="nbModules">
                                    <c:forEach begin="1" end="4" var="entry" >
                                        <option value="${entry}"><c:out value="${entry}"/></option>
                                    </c:forEach>
                                </select>
                            </div>
                        </div>
                        <div id="creer_bloc8">
                            <div id="creer_text">Nombre d&prime;&eacute;quipes</div>
                            <div id="creer_champs">
                                <select name="nbEquipes">
                                    <c:forEach begin="1" end="20" var="entry" >
                                        <option value="${entry}"><c:out value="${entry}"/></option>
                                    </c:forEach>
                                </select>
                            </div>
                        </div>
                        <div id="creer_bloc9">
                            <div id="creer_text">Nombre d&prime;&eacute;l&egrave;ves par &eacute;quipe</div>
                            <div id="creer_champs">
                                <select name="nbMembres">
                                    <c:forEach begin="1" end="20" var="entry" >
                                        <option value="${entry}"><c:out value="${entry}"/></option>
                                    </c:forEach>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div id="creer_bouton">
                        <input type="submit" name="action" value="Suivant" />
                    </div>
                </div>
            </form>
        </div>
    </body>
</html>
